<?php
class CommandShowAsText {
	public $result;
	
	function __construct( $result ){
		$this->result = $result;
		return $this;
	}
	
	public function show(){
		if ( $this->result->hasError() )
			echo $this->result->error;
	}
}